package com.xingongchang.baolebei.adapter;

import java.util.ArrayList;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.insthub.BeeFramework.adapter.BeeBaseAdapter;
import com.xingongchang.baolebei.R;
import com.xingongchang.baolebei.component.GoodItemLargeCell;
import com.xingongchang.baolebei.protocol.SIMPLEGOODS;

public class GoodListLargeAdapter extends BeeBaseAdapter {

    public GoodListLargeAdapter(Context c, ArrayList dataList) {
        super(c, dataList);
         
    }

    /* (non-Javadoc)
     * @see android.widget.Adapter#getCount()
     */
    @Override
    public int getCount() {
         
        return dataList.size();
    }

    /* (non-Javadoc)
     * @see android.widget.Adapter#getItem(int)
     */
    @Override
    public Object getItem(int position) {
         
        return null;
    }

    /* (non-Javadoc)
     * @see android.widget.Adapter#getItemId(int)
     */
    @Override
    public long getItemId(int position) {
         
        return 0;
    }

    @Override
    protected View bindData(int position, View cellView, ViewGroup parent,
                            BeeCellHolder h) {
        SIMPLEGOODS simplegoods = (SIMPLEGOODS)dataList.get(position);
        ((GoodItemLargeCell)cellView).bindData(simplegoods);
        return null;
    }

    @Override
    public View createCellView() {
         
        return mInflater.inflate(R.layout.product_detail_cell, null);
    }

    @Override
    protected BeeCellHolder createCellHolder(View cellView) {
         
        return null;
    }
}
